//package com.dyh.quickdemo.depRm3;
//
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
//import org.springframework.beans.factory.support.BeanDefinitionBuilder;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
//import org.springframework.beans.factory.support.GenericBeanDefinition;
//import org.springframework.context.annotation.Configuration;
//
///*
//@Author=Joey Wheeler
//@Date=2021/1/14 11:38
//*/
//@Configuration
//public class SpringLambdaRegistryProcessor implements BeanDefinitionRegistryPostProcessor {
//
//  //  private BeanNameGenerator beanNameGenerator = new AnnotationBeanNameGenerator();
//
//    @Override
//    public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException {
//
//        for (LambdaWrap lambdaWrap : MapRegistMedium.all()) {
//            String beanName = lambdaWrap.getId();
//            BeanDefinitionBuilder beanDefinitionBuilder =
//                   // BeanDefinitionBuilder.genericBeanDefinition(lambdaWrap.getLambda().getClass());
//                    BeanDefinitionBuilder.genericBeanDefinition(lambdaWrap.getLambda().getClass());
//            GenericBeanDefinition beanDefinition = (GenericBeanDefinition) beanDefinitionBuilder.getBeanDefinition();
//
//            beanDefinitionRegistry.registerBeanDefinition(beanName, beanDefinition);
//
////
//        }
//    }
//    /*
//           // annotatedBeanDefinition.setParentName("baseDao");
//        //自动生成name
//   //     String beanName = ( this.beanNameGenerator.generateBeanName(annotatedBeanDefinition, beanDefinitionRegistry));
//    */
//
//    @Override
//    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
//        //なにもしない
//    }
//}
